package com.atled.attractions.discounts;

import java.util.List;

import com.atled.companies.Company;
import com.atled.data.collections.CollectionByUid;
import com.atled.jobs.Job;
import com.atled.users.User;
import com.atled.users.UserManager;

public class StandardDiscount implements Discount {
	
	private String title;
	private String description;
	private double discount;
	private CollectionByUid<Job> jobs;
	private CollectionByUid<Company> companies;
	private int creatorUid;
	private boolean isConfirmed; 
	
	@Override
	public String getTitle() {
		return title;
	}

	@Override
	public String getDescription() {
		return description;
	}

	@Override
	public double getDiscount() {
		return discount;
	}

	@Override
	public List<Job> getJobs() {
		return jobs.getList();
	}

	@Override
	public List<Company> getCompanies() {
		return companies.getList();
	}

	@Override
	public User getCreator() {
		return UserManager.getUserByUid(creatorUid);
	}

	@Override
	public boolean isConfirmed() {
		return isConfirmed;
	}

}
